<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0" />
<title>主数据 - 项目</title>
<%@ include file="../common/_head_include.jsp" %>

<style>
table.simpleDetailLayout { min-width:360px; border:1px solid #666; border-collapse:collapse; }
table.simpleDetailLayout th,td { border:0px solid #666; text-align:left; line-height:2em; }
table.simpleDetailLayout th { background-color:#CCC; }

</style>

</head>
<body>
<%@ include file="../common/_page_header.jsp" %>

<div id="g_content"><!-- do NOT change it. It's part of the global page structure. -->

<%@ include file="../common/_page_menubar.jsp" %>

<div id="g_workspace"><!-- do NOT change it. It's part of the global page structure. -->

<h3 style="display:inline">项目管理</h3>
<span class="clickable"><a href="entry">&lt;&lt;&lt;返回列表</a></span>
<br/>
<br/>

<table id="tableDetail" class="simpleDetailLayout" dataStr='{"projectId":${project.id}}'>
	<tr>
		<td style="width:5em">名称：</td><td id="name">${project.name}</td>
		<td style="width:5em">缩写：</td><td id="prefix">${project.prefix}</td>
	</tr>
	<tr><td>开始：</td><td colspan="3" id="startDate">${project.startDate}</td></tr>
	<tr><td>简介：</td><td colspan="3" id="description">${project.description}</td></tr>
	<tr><td>负责人：</td><td colspan="3">TODO</td></tr>
</table>
<br/>
<br/>


<h3>助学历史</h3>
<table id="tableProjectPhases" class="simpleDataGrid">
<tbody>
	<c:forEach var="row" items="${projectPhaseList}">
	<tr>
		<td>${row.semesterName}</td>
		<td>${row.status}</td>
		<td></td>
	</tr>
	</c:forEach>

	<c:if test="${projectPhaseList.size()<=0}">
	<tr><td>尚无任何助学历史</td></tr>
	</c:if>
</tbody>
</table>
<span id="bthAddPhase" class="clickable">开启新的助学阶段</span>


<p id="txtMessage"></p>

<div id="projectPhaseDialog" title="项目阶段" style="display:none;">
<form id="projectPhaseForm">
	<input type="hidden" id="id" name="id" />
	<input type="hidden" id="projectId" name="projectId" />
	<br/>
	<label>项目：</label>
	<input type="text" id="projectName" readonly="readonly" class="text ui-widget-content ui-corner-all"><br/><br/>
	<label for="semester">学期：</label>
	<select name="semester" id="semester" class="ui-widget-content ui-corner-all"></select><br/><br/>
</form>
</div>

<script type="text/javascript" src="<%=request.getContextPath() %>/js/masterdata/project_detail.js"></script>


</div>
</div>
<%@ include file="../common/_page_footer.jsp" %>
</body>
</html>